package com.example.demo.information.entity.info;

import com.example.demo.information.entity.School;
import lombok.Data;

/**
 * @author littlecar
 * @date 2020/3/12 16:30
 */
@Data
public class SchoolInfo {

    private Long id;
    private String name;
    private String short_name;
    private String sxm;
    private Integer province;
    private String province_name;
    private Integer city;
    private String city_name;
    private Integer area;
    private String area_name;
    private String admin_name;

    public SchoolInfo(School school) {
        this.id=school.getId();
        this.name=school.getName();
        this.short_name=school.getShort_name();
        this.sxm=school.getSxm();
        this.province=school.getProvince();
        this.province_name=school.getProvince_name();
        this.city=school.getCity();
        this.city_name=school.getCity_name();
        this.area=school.getArea();
        this.area_name=school.getArea_name();
        this.admin_name = school.getAdmin_name().replace(",","/");
    }
}
